doctype html

mixin sayHi(name)
    p.sayHi=name

html
    head
            title hello pug
    body
        h1 pug pug
        div.container
            header 头部
            div.main 主要内容
                p.
                    asdfasdfa
                    asdfasd
                    adsfasd
                    asdfasdfa
                -var Pug="hello world"
                .title  #{Pug}
                //- 循环 switch
                -var name='java'
                case name
                    when 'java': p Hi,java
                case name
                    when 'pug': p Hi,pug
                // mixins
                +sayHi('this is mixin')

            footer 尾部内容2



